package com.fowo.api.model.wfs.cargo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** WFS货件 导入导出辅助模型 */
@Getter
@Setter
public class WfsCargoExcelPo {

  @Size(max = 50, message = "货件单号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "货件单号")
  private String cargoCode;

  @NotNull(message = "店铺不能为空")
  @Size(max = 50, message = "店铺长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*店铺")
  private String shopIdShopName;

  @ExcelIgnore
  @ExcelProperty(value = "*店铺")
  private Long shopId;

  @Size(max = 50, message = "入库订单编号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "入库订单编号")
  private String inBoundOrderId;

  @Size(max = 50, message = "物流中心编号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "物流中心编号")
  private String logisticsCode;

  @Size(max = 50, message = "国家/地区长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "国家/地区")
  private String countryNameCountry;

  @ExcelIgnore
  @ExcelProperty(value = "国家/地区")
  private Long countryName;

  @Size(max = 50, message = "详细地址长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "详细地址")
  private String detailedAddress;

  @Size(max = 50, message = "平台货件状态长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "平台货件状态")
  private String cargoStatus;

  @Size(max = 50, message = "发货单号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "发货单号")
  private String shippingListCodes;

  @Size(max = 50, message = "备注长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "备注")
  private String remarks;

  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "完成时间")
  private java.util.Date completedTime;
}
